// All links-related publications

import { Meteor } from 'meteor/meteor';
import { Links } from '../links.js';

Meteor.publish('links.all', function () {
	
  return Links.find({});
});


Meteor.publish('links.limit', function (page, pagesize) {
	
  return Links.find({}, {skip: page*pagesize, limit: pagesize, sort: {createdAt: -1}});
});
